package club.ruanx.movie.repository.mongodb;

import club.ruanx.movie.entity.nosql.OperateLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/10/30 14:42
 */
public interface OperateLogRepository extends MongoRepository<OperateLog, String> {

    Optional<OperateLog> findByOperator(String operator);

    Page<OperateLog> findByOperator(String operator, Pageable pageable);
}
